function showDialog(obj,url){
	//var width = screen.availWidth/2;
	//var height = screen.availHeight/3;
	//window.showModalDialog("","app","dialogWidth:"+width+"px; dialogHeight:"+height+"px ;resizable:no;center:yes;scroll:yes;status:no");
	var vReturnValue  = window.showModalDialog(url,obj.value,"dialogWidth:200px; dialogHeight:370px ;resizable:no;center:yes;scroll:yes;status:no");
	if(vReturnValue!=""){
		obj.value = vReturnValue.split("-")[0];
		var inputs = document.getElementsByTagName('input');
		 for(var i=0; i<inputs.length; i++){
		    if(inputs[i].type=='text' && inputs[i]==obj){
		    	inputs[i+1].value=vReturnValue.split("-")[1];
		      break;
		    }
		 }
	}
}
function openWin(url){
	window.target="contentFrame";
	window.location = url;
}